﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000503 RID: 1283
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ExpUpEquipmentCsReq : IMessage<ExpUpEquipmentCsReq>, IMessage, IEquatable<ExpUpEquipmentCsReq>, IDeepCloneable<ExpUpEquipmentCsReq>, IBufferMessage
	{
		// Token: 0x1700109A RID: 4250
		// (get) Token: 0x06003A0D RID: 14861 RVA: 0x0009F829 File Offset: 0x0009DA29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ExpUpEquipmentCsReq> Parser
		{
			get
			{
				return ExpUpEquipmentCsReq._parser;
			}
		}

		// Token: 0x1700109B RID: 4251
		// (get) Token: 0x06003A0E RID: 14862 RVA: 0x0009F830 File Offset: 0x0009DA30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ExpUpEquipmentCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700109C RID: 4252
		// (get) Token: 0x06003A0F RID: 14863 RVA: 0x0009F842 File Offset: 0x0009DA42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ExpUpEquipmentCsReq.Descriptor;
			}
		}

		// Token: 0x06003A10 RID: 14864 RVA: 0x0009F849 File Offset: 0x0009DA49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpEquipmentCsReq()
		{
		}

		// Token: 0x06003A11 RID: 14865 RVA: 0x0009F854 File Offset: 0x0009DA54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpEquipmentCsReq(ExpUpEquipmentCsReq other) : this()
		{
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this.equipmentUniqueId_ = other.equipmentUniqueId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003A12 RID: 14866 RVA: 0x0009F8A0 File Offset: 0x0009DAA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpEquipmentCsReq Clone()
		{
			return new ExpUpEquipmentCsReq(this);
		}

		// Token: 0x1700109D RID: 4253
		// (get) Token: 0x06003A13 RID: 14867 RVA: 0x0009F8A8 File Offset: 0x0009DAA8
		// (set) Token: 0x06003A14 RID: 14868 RVA: 0x0009F8B0 File Offset: 0x0009DAB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x1700109E RID: 4254
		// (get) Token: 0x06003A15 RID: 14869 RVA: 0x0009F8B9 File Offset: 0x0009DAB9
		// (set) Token: 0x06003A16 RID: 14870 RVA: 0x0009F8C1 File Offset: 0x0009DAC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EquipmentUniqueId
		{
			get
			{
				return this.equipmentUniqueId_;
			}
			set
			{
				this.equipmentUniqueId_ = value;
			}
		}

		// Token: 0x06003A17 RID: 14871 RVA: 0x0009F8CA File Offset: 0x0009DACA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ExpUpEquipmentCsReq);
		}

		// Token: 0x06003A18 RID: 14872 RVA: 0x0009F8D8 File Offset: 0x0009DAD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ExpUpEquipmentCsReq other)
		{
			return other != null && (other == this || (object.Equals(this.CostData, other.CostData) && this.EquipmentUniqueId == other.EquipmentUniqueId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003A19 RID: 14873 RVA: 0x0009F928 File Offset: 0x0009DB28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this.EquipmentUniqueId != 0U)
			{
				num ^= this.EquipmentUniqueId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003A1A RID: 14874 RVA: 0x0009F97D File Offset: 0x0009DB7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003A1B RID: 14875 RVA: 0x0009F985 File Offset: 0x0009DB85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003A1C RID: 14876 RVA: 0x0009F990 File Offset: 0x0009DB90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.costData_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.CostData);
			}
			if (this.EquipmentUniqueId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.EquipmentUniqueId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003A1D RID: 14877 RVA: 0x0009F9EC File Offset: 0x0009DBEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this.EquipmentUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EquipmentUniqueId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003A1E RID: 14878 RVA: 0x0009FA44 File Offset: 0x0009DC44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ExpUpEquipmentCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			if (other.EquipmentUniqueId != 0U)
			{
				this.EquipmentUniqueId = other.EquipmentUniqueId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003A1F RID: 14879 RVA: 0x0009FAAC File Offset: 0x0009DCAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003A20 RID: 14880 RVA: 0x0009FAB8 File Offset: 0x0009DCB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.EquipmentUniqueId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.costData_ == null)
					{
						this.CostData = new ItemCostData();
					}
					input.ReadMessage(this.CostData);
				}
			}
		}

		// Token: 0x040016C8 RID: 5832
		private static readonly MessageParser<ExpUpEquipmentCsReq> _parser = new MessageParser<ExpUpEquipmentCsReq>(() => new ExpUpEquipmentCsReq());

		// Token: 0x040016C9 RID: 5833
		private UnknownFieldSet _unknownFields;

		// Token: 0x040016CA RID: 5834
		public const int CostDataFieldNumber = 1;

		// Token: 0x040016CB RID: 5835
		private ItemCostData costData_;

		// Token: 0x040016CC RID: 5836
		public const int EquipmentUniqueIdFieldNumber = 12;

		// Token: 0x040016CD RID: 5837
		private uint equipmentUniqueId_;
	}
}
